<?php

/*
 * Author: Quan Van Sinh
 * Email : qvsinh@gmail.com
 * Mobile: 0972405165
 */

class action {

    function action() {
        
    }
	
	function delete_image_notify(){
		global $db;
		$rs = $db->query("SELECT * FROM stream WHERE type=3");
		while ($row = $db->fetch_array($rs)) {
			echo $row['id'];
			$db->query("DELETE FROM stream WHERE 1 AND parent_id=".$row['id']);
		}
		$db->query("DELETE FROM stream WHERE 1 AND type=3");
	}
    

}

?>
